package com.zuozuo.service;

import com.zuozuo.mapper.UserMapper;
import com.zuozuo.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired(required = false)
    private UserMapper userMapper;

    public User findUserById(Long id){
        return userMapper.selectByPrimaryKey(id);
    }
}
